﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace MidasPoster
{
     [DefaultPropertyAttribute("QUESTIONDESC")]
    public class MDTB_QUESTION
    {
        public static string DBName = EDBINFOS.EDBINFO_QUESTION.GetDescription();
        /// <summary>
        /// 
        /// </summary>
        private int _indexid = 0;
        
        /// <summary>
        /// 问题描述
        /// </summary>
        private string _questionDesc = "";
        /// <summary>
        /// 提交问题人员id
        /// </summary>
        private string _userid_ask = "";
        /// <summary>
        /// 正在处理问题人员id
        /// </summary>
        private string _userid_deal = "";
        /// <summary>
        /// 提交问题日期
        /// </summary>
        private DateTime _date_ask = DateTime.Now;
        /// <summary>
        /// 提交问题的单位公司或者组织（来源）
        /// </summary>
        private string _questionSrc = "";
        /// <summary>
        /// 产生问题软件的版本
        /// </summary>
        private string _questionsoftname = "";
        /// <summary>
        /// 模型名称
        /// </summary>
        private string _questionFmodelName = "";
        /// <summary>
        /// 模型文件存储id(上传时自动生成)
        /// </summary>
        private string _questionFmodelid = "";
        /// <summary>
        /// 其他文件名称
        /// </summary>
        private string _questionFotherName = "";
        /// <summary>
        /// 其他文件id(上传时自动生成)
        /// </summary>
        private string _questionFotherid = "";
        /// <summary>
        /// 联系类型（QQ/MSN/MAIL/PHONE）
        /// </summary>
        private string _questionlinkType = "";
        /// <summary>
        /// 联系方式具体内容
        /// </summary>
        private string _questionlinkDesc = "";
        private int    _questionstate = 0;

        public MDTB_QUESTION()
        {

        }
        [CategoryAttribute("问题描述"), DisplayNameAttribute("问题描述")]
        public string QUESTIONDESC { get { return _questionDesc; } set { _questionDesc = value; } }
        [CategoryAttribute("问题来源"), DisplayNameAttribute("提交者")]
        public string USERID_ASK { get { return _userid_ask; } set { _userid_ask = value; } }
        [CategoryAttribute("问题来源"), DisplayNameAttribute("提交时间")]
        public DateTime DATE_ASK { get { return _date_ask; } set { _date_ask = value; } }
         [CategoryAttribute("问题来源"), DisplayNameAttribute("提交单位")]
        public string QUESTIONSRC { get { return _questionSrc; } set { _questionSrc = value; } }
         [TypeConverter(typeof(FileNameConverter)), CategoryAttribute("问题描述"), DisplayNameAttribute("影响软件名称")]
        public string QUESTIONSOFTNAME { get { return _questionsoftname; } set { _questionsoftname = value; } }
        [CategoryAttribute("问题描述"), DisplayNameAttribute("模型文件名")]  
        public string QUESTIONFMODELNAME { get { return _questionFmodelName; } set { _questionFmodelName = value; } }
         [CategoryAttribute("问题描述"), DisplayNameAttribute("模型文件"), EditorAttribute(typeof(PropertyGridFileItem), typeof(System.Drawing.Design.UITypeEditor))]  
         public string QUESTIONFMODELID { get { return _questionFmodelid; } set { _questionFmodelid = value; } }
         [CategoryAttribute("问题描述"), DisplayNameAttribute("其他文件名")]
        public string QUESTIONFOTHERNAME { get { return _questionFotherName; } set { _questionFotherName = value; } }
         [CategoryAttribute("问题描述"), DisplayNameAttribute("其他文件")]
        public string QUESTIONFOTHERID { get { return _questionFotherid; } set { _questionFotherid = value; } }
         [TypeConverter(typeof(FileNameConverter)), CategoryAttribute("问题来源"), DisplayNameAttribute("联系方式")]
        public string QUESTIONLINKTYPE { get { return _questionlinkType; } set { _questionlinkType = value; } }
         [CategoryAttribute("问题来源"), DisplayNameAttribute("联系号码"), EditorAttribute(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]  
         public string QUESTIONLINKDESC { get { return _questionlinkDesc; } set { _questionlinkDesc = value; } }
       [CategoryAttribute("技术支持"), DisplayNameAttribute("当前处理者")]
         public string USERID_DEAL { get { return _userid_deal; } set { _userid_deal = value; } }
       [TypeConverter(typeof(FileNameConverter)), CategoryAttribute("技术支持"), DisplayNameAttribute("当前状态")]
       public int QUESTIONSTATE { get { return _questionstate; } set { _questionstate = value; } }
         [CategoryAttribute("问题描述"), DisplayNameAttribute("ID")]
       public int INDEXID
       {
           get
           {
               return _indexid;
           }
           set
           {
               _indexid = value;
           }
       }
    }
}
